var url = serverPre + "/manager/scs/v2/productSign//list";

var bsConf = {

    queryFormId: "c-query-form",

    createFormId: "c-create-form",

    tableID: "id",

    queryCols: 3,

    queryFloat: "right",

    voName: "c",
    initData: true,
    // needChangeTab: true,
    //
    // needInitECharts: true,

    queryConfigs:                   //页面头部查询form
        [

            {
                type: 'select',
                id :'zh',
                placeholder: '租户',
                label: '租户',
                name: 'companyId',
                idProperty:"companyId",
                verify:"companyId_zh",
                dataUrl:serverPre+"/manager/scs/v2/company",
                nameProperty: 'companyAbbrName'
            },
            {
                type: 'select',
                placeholder: '产品',
                label: '产品',
                id:"cp",
                name: 'code',
                idProperty:"code",
                dataUrl:serverPre+"/manager/scs/v2/product",
                nameProperty: 'productName'
            }

        ],

    //列表内容
    tableCols: [
        {field: 'channelNo', width: 300, title: '产品编码', align: 'center'}
        ,{field: 'productCode', width: 200, title: '产品代码', align: 'center'}
        , {field: 'channelName', width: 200, title: '产品', align: 'center'}
        , {field: 'tenant', width: 300, title: '所属企业', align: 'center'}
        , {field: 'createTime', width: 200, title: '当前路由生效时间', align: 'center'}
        , {field: 'productSignStr', width: 300, title: '当前路由配比', align: 'center'}
        , {fixed: 'right', width: 150, title: '操作', align: 'center', toolbar: '#bar'}
    ],



    bindOwnTableEventCol: function (layEvent, data) {
        if (layEvent === 'sign_edit'){
            xadmin.open("编辑","./edit.html?id="+data['channelNo'],1000,500)
        }
    }
}
function query_search() {
    if ($("#up").hasClass("layui-icon-down")) {
        document.getElementById('up').classList.add("layui-icon-up");
        document.getElementById('up').classList.remove("layui-icon-down");
    }else{
        document.getElementById('up').classList.add("layui-icon-down");
        document.getElementById('up').classList.remove("layui-icon-up");

    }
    $("#product-query-form").toggle()
}


